package com.dragon.modules.yuegou.mapper.product;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dragon.modules.yuegou.entity.product.AttributeEntity;
import com.dragon.modules.yuegou.model.product.Attribute;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 商品规格属性表 Mapper接口
 *
 * @author px
 * @date 2019-03-29 16:06:34
 * @version 2.0
 */
@Component("proAttributeMapper")
public interface AttributeMapper extends BaseMapper<AttributeEntity> {

    /**
     * 根据skuid查询商品规格列表
     * @param skuId
     * @return
     */
    List<Attribute> findBySkuId(@Param("skuId") String skuId);
}
